import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';

// 好友
@Entity('friend')
export default class Friend extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'user_id', comment: '用户ID' })
  userId: string;

  @Column({ name: 'friend_id', comment: '朋友ID' })
  friendId: string;
}
